package com.hison.tandainbao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hison.tandainbao.entiy.pojo.domain.TbJob;
import com.hison.tandainbao.entiy.pojo.dto.JobInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author hison
* @description 针对表【tb_job】的数据库操作Mapper
* @createDate 2024-03-30 14:40:27
* @Entity com.hison.tandainbao.entiy.pojo.domain.TbJob
*/
public interface TbJobMapper extends BaseMapper<TbJob> {


    List<JobInfo> getAll();

    List<JobInfo> getJobByName(@Param("jobName") String jobName);

    JobInfo getJobByJobId(@Param("jobId") String jobId);

    int updateJobStatus(@Param("jobId") String jobId, @Param("status") String status);

    int updateJob(JobInfo jobInfo);

    List<JobInfo> getAllByAdmin();
    //@Param("current") Integer current,  @Param("total") Integer total

    int updateJobStatusByAdmin(@Param("jobId") String jobId,@Param("status") String status);
}
